﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/MasterBody.Master" AutoEventWireup="true" CodeBehind="Activities.aspx.cs" Inherits="Besture.UI.News.Activities" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">

    <div class="banner">
    	<div class="help-ban w980"><img src="/Upload/Images/Banner/<%=_BannerTop.ImageUrl%>"/>
        	<%=_BannerTop.ImageRemark%>
        </div>
    </div>
    
	<div class="main">
		<div class="w980">
        	<div class="position">
                您当前的位置：<a href="/Index.apsx">首页</a> &gt;  <a href="Dynamic.aspx">新闻动态</a> &gt; 活动详情
            </div>
            <div class="map-cen clearfix">
            	<div class="map-left">
                      <h2>新闻动态</h2>
                      <div class="leftnav">
                          <ul>
                              <li><a href="Dynamic.aspx"><span>公司动态</span> </a></li>
                              <li><a href="Media.aspx"><span>媒体报道</span></a></li>
                              <li><a href="ActiveList.aspx"><span>活动预约</span> </a></li>
                              <li><a href="Review.aspx"><span>活动精彩回顾</span></a></li>
                         </ul>
                     </div>
                </div>
                <div class="map-right">
                	<div class="activities-top clearfix">
                    	<div class="activities-left"><img src="/Upload/Images/News/<%=_News.ImageUrl%>"/></div>
                        <div class="activities-right">
                        	<h2><%=_News.Title%></h2>
                            <div class="activities-righta">
                            	<p>时间：<%=_News.PubDate.Value.ToString("yyyy-MM-dd")%></p>
                                <p>地点：<%=_News.Source%></p>
                                <p>会议人数：<%=(_News.ExtColumn6.HasValue||_News.ExtColumn6 <= 0 )? "无限制" : _News.ExtColumn6 + ""%></p>
                            </div>
                            <div class="activities-rights">
                            	<div class="activities-rights1 <%=(_News.PubDate.Value.Date<DateTime.Now.Date?"activities-rights1re":"") %>"><a href="javascript:void(0);" onclick="return SubmitActive(this,'<%=_News.ID %>');">在线报名</a> <span><%=_News.UserNum.HasValue?_News.UserNum.Value:0%>人</span> 已报名</div>
                                <div class="activities-rights2">
                                	<span>分享到：</span>
                                    <div class="bdsharebuttonbox"><a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a><a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a><a href="#" class="bds_linkedin" data-cmd="linkedin" title="分享到linkedin"></a></div>
<script>    window._bd_share_config = { "common": { "bdSnsKey": {}, "bdText": "", "bdMini": "2", "bdMiniList": false, "bdPic": "", "bdStyle": "0", "bdSize": "16" }, "share": {} }; with (document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)];
</script>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="activities-bot">
                    	<%=_News.NewsContext%>
                    </div>	
                </div>
            </div>
        </div>
	</div><!-- //main -->
    <script type="text/javascript">
        $(function () {
            $("#TopMenu li").removeClass("on").eq(8).addClass("on");

        });

        var bz = false;
        //报名
        function SubmitActive(obj, id) {
            if ($(obj).parent(".activities-rights1").hasClass("activities-rights1re")) {
                alert("活动已结束");
                return false;
            }
            if (bz) {
                return false;
            }
            bz = true;
            var jsonObj = {};
            jsonObj["ID"] = id;
            $.ajax({
                type: "POST",
                url: "/Ajax/AjaxPost.aspx",
                data: { action: "SubmitActive", JsonString: JSON2.stringify(jsonObj) },
                success: function (result) {
                    var msg = result.replace("\"", "").replace("\"", "");
                    alert(msg);
                    if (msg == "请先登录后再报名") {
                        window.location.href = "/Land/Land.aspx";
                    }
                    bz = false;
                    return false;
                }
            });
            return false;
        }
        </script>
</asp:Content>
